package com.qhit.service.impl;

import com.qhit.dao.StudentDao;
import com.qhit.dao.impl.StudentDaoImpl;
import com.qhit.entity.Student;
import com.qhit.service.StudentService;

import java.util.List;

/**
 * TODO
 *
 * @author 村头老杨头
 * @version 1.0
 * @date 2021/10/12 16:18
 */
public class StudentServiceImpl implements StudentService {
    private StudentDao studentDao = new StudentDaoImpl();
    @Override
    public List<Student> getStudentList() {
        return studentDao.getStudentList();
    }

    @Override
    public Student getStudentById(String sno) {
        return studentDao.getStudentById(sno);
    }

    @Override
    public int addStudent(Student student) {
        return studentDao.addStudent(student);
    }

    @Override
    public int deleteStudent(String sno) {
        return studentDao.deleteStudent(sno);
    }

    @Override
    public int updateStudent(Student student) {
        return studentDao.updateStudent(student);
    }
}
